All Questions
Tagged with postgresqlgo
6 questions
1vote
0answers
107views
Go REST API feedback [closed]
My intention is to create an API as generic and DRY as possible using Go. To achieve this, I have made some more or less common decisions: To use AJAX call to avoid reloading page when updating the ...
2votes
1answer
952views
Creating SQL Table from a Go Struct
I have been building an API in Go, which I want to link to a Postgres SQL table. I have always used NoSQL previously but thought ...
4votes
1answer
793views
Historical Funding Rate Miner for ftx.com
I recently started to take a look at the Go programming language and decided to write a small project without practical use. The objectives were: Regularly poll the latest funding rates from https://...
3votes
0answers
139views
Updating user information in SQL
Newbie here. I have this gqlgen api with sqlc update code, which updates the user by given id with provided fields: ...
6votes
1answer
129views
HackerNews news fetcher
The following code is part of a big application. I am new to Go, and appreciate feedback on the best practices and improvements. Please consider styling and comments as well. Every 30 minutes, this ...
2votes
1answer
3kviews
go-pg efficient multi table/row insert
What is an efficient way to write this raw PostgreSQL query using in go? I'm using go-pg but something with just the pg library ...